﻿
<div id="sidebar-container" class="clear">
    @{ 
        var first = HtmlCache.GetCategories(DeptCategoryLevelType.LevelI);
        var second = HtmlCache.GetCategories(DeptCategoryLevelType.LevelII);
    }
    <ul>
        @if (first != null && first.Count > 0)
        {
            <li id="tree-root">
                <a>@first[0].Category_Name</a>
                <ul>
                    @foreach (var second_item in second)
                    {
                        <li status="unloaded" cid="@second_item.Category_ID" cname="@second_item.Category_Name">
                            <a>@second_item.Category_Name</a>
                            <ul>
                                <li></li>
                            </ul>
                        </li>
                    }
                </ul>
            </li>
        }
    </ul>
</div>
